home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-09-07 | 7.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 62 7b 63 6c 61 73 73 20 |........|b{class |
|00000010| 42 61 6c 6c 4c 61 75 6e | 63 68 65 72 20 65 78 74 |BallLaun|cher ext|
|00000020| 65 6e 64 73 20 57 65 61 | 70 6f 6e 0d 0a 20 20 20 |ends Wea|pon.. |
|00000030| 20 63 6f 6e 66 69 67 28 | 75 73 65 72 29 0d 0a 20 | config(|user).. |
|00000040| 20 20 20 48 69 64 65 44 | 72 6f 70 44 6f 77 6e 0d | HideD|ropDown.|
|00000050| 0a 09 43 61 63 68 65 45 | 78 65 6d 70 74 3b 0d 0a |..CacheE|xempt;..|
|00000060| 0d 0a 23 45 58 45 43 20 | 4f 42 4a 20 4c 4f 41 44 |..#EXEC |OBJ LOAD|
|00000070| 20 46 49 4c 45 3d 49 6e | 74 65 72 66 61 63 65 43 | FILE=In|terfaceC|
|00000080| 6f 6e 74 65 6e 74 2e 75 | 74 78 0d 0a 0d 0a 76 61 |ontent.u|tx....va|
|00000090| 72 28 29 20 74 72 61 6e | 73 69 65 6e 74 20 62 6f |r() tran|sient bo|
|000000a0| 6f 6c 20 6c 61 75 6e 63 | 68 65 64 42 61 6c 6c 3b |ol launc|hedBall;|
|000000b0| 0d 0a 76 61 72 28 29 20 | 74 72 61 6e 73 69 65 6e |..var() |transien|
|000000c0| 74 20 50 61 77 6e 20 50 | 61 73 73 54 61 72 67 65 |t Pawn P|assTarge|
|000000d0| 74 3b 0d 0a 76 61 72 28 | 29 20 53 6f 75 6e 64 20 |t;..var(|) Sound |
|000000e0| 50 61 73 73 41 6d 62 69 | 65 6e 74 3b 0d 0a 76 61 |PassAmbi|ent;..va|
|000000f0| 72 28 29 20 53 6f 75 6e | 64 20 50 61 73 73 54 61 |r() Soun|d PassTa|
|00000100| 72 67 65 74 4c 6f 63 6b | 65 64 3b 0d 0a 76 61 72 |rgetLock|ed;..var|
|00000110| 28 29 20 53 6f 75 6e 64 | 20 50 61 73 73 54 61 72 |() Sound| PassTar|
|00000120| 67 65 74 4c 6f 73 74 3b | 0d 0a 76 61 72 28 29 20 |getLost;|..var() |
|00000130| 53 74 72 69 6e 67 20 50 | 61 73 73 54 61 72 67 65 |String P|assTarge|
|00000140| 74 4c 6f 63 6b 65 64 46 | 6f 72 63 65 3b 0d 0a 76 |tLockedF|orce;..v|
|00000150| 61 72 28 29 20 53 74 72 | 69 6e 67 20 50 61 73 73 |ar() Str|ing Pass|
|00000160| 54 61 72 67 65 74 4c 6f | 73 74 46 6f 72 63 65 3b |TargetLo|stForce;|
|00000170| 0d 0a 76 61 72 28 29 20 | 66 6c 6f 61 74 20 48 65 |..var() |float He|
|00000180| 61 6c 52 61 74 65 3b 0d | 0a 76 61 72 20 74 72 61 |alRate;.|.var tra|
|00000190| 6e 73 69 65 6e 74 20 66 | 6c 6f 61 74 20 48 65 61 |nsient f|loat Hea|
|000001a0| 6c 41 63 63 75 6d 3b 0d | 0a 76 61 72 20 74 72 61 |lAccum;.|.var tra|
|000001b0| 6e 73 69 65 6e 74 20 66 | 6c 6f 61 74 20 53 77 69 |nsient f|loat Swi|
|000001c0| 74 63 68 54 65 73 74 54 | 69 6d 65 3b 0d 0a 0d 0a |tchTestT|ime;....|
|000001d0| 76 61 72 20 41 63 74 6f | 72 20 41 49 54 61 72 67 |var Acto|r AITarg|
|000001e0| 65 74 3b 09 09 2f 2f 20 | 75 73 65 64 20 62 79 20 |et;..// |used by |
|000001f0| 41 49 0d 0a 0d 0a 23 65 | 78 65 63 20 4f 42 4a 20 |AI....#e|xec OBJ |
|00000200| 4c 4f 41 44 20 46 69 6c | 65 3d 49 6e 64 6f 6f 72 |LOAD Fil|e=Indoor|
|00000210| 41 6d 62 69 65 6e 63 65 | 2e 75 61 78 0d 0a 0d 0a |Ambience|.uax....|
|00000220| 72 65 70 6c 69 63 61 74 | 69 6f 6e 0d 0a 7b 0d 0a |replicat|ion..{..|
|00000230| 20 20 20 20 72 65 6c 69 | 61 62 6c 65 20 69 66 20 | reli|able if |
|00000240| 28 20 52 6f 6c 65 20 3d | 3d 20 52 4f 4c 45 5f 41 |( Role =|= ROLE_A|
|00000250| 75 74 68 6f 72 69 74 79 | 20 29 0d 0a 20 20 20 20 |uthority| ).. |
|00000260| 20 20 20 20 50 61 73 73 | 54 61 72 67 65 74 3b 0d | Pass|Target;.|
|00000270| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000280| 66 75 6e 63 74 69 6f 6e | 20 4f 75 74 4f 66 41 6d |function| OutOfAm|
|00000290| 6d 6f 28 29 0d 0a 7b 0d | 0a 7d 0d 0a 0d 0a 66 75 |mo()..{.|.}....fu|
|000002a0| 6e 63 74 69 6f 6e 20 53 | 79 6e 63 68 72 6f 6e 69 |nction S|ynchroni|
|000002b0| 7a 65 57 65 61 70 6f 6e | 28 57 65 61 70 6f 6e 20 |zeWeapon|(Weapon |
|000002c0| 43 6c 69 65 6e 74 57 65 | 61 70 6f 6e 29 0d 0a 7b |ClientWe|apon)..{|
|000002d0| 0d 0a 09 69 66 20 28 20 | 49 6e 73 74 69 67 61 74 |...if ( |Instigat|
|000002e0| 6f 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |or.Playe|rReplica|
|000002f0| 74 69 6f 6e 49 6e 66 6f | 2e 48 61 73 46 6c 61 67 |tionInfo|.HasFlag|
|00000300| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 72 65 | == None| )....re|
|00000310| 74 75 72 6e 3b 0d 0a 09 | 69 66 20 28 20 49 6e 73 |turn;...|if ( Ins|
|00000320| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00000330| 65 72 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |er != No|ne )....|
|00000340| 49 6e 73 74 69 67 61 74 | 6f 72 2e 43 6f 6e 74 72 |Instigat|or.Contr|
|00000350| 6f 6c 6c 65 72 2e 43 6c | 69 65 6e 74 53 65 74 57 |oller.Cl|ientSetW|
|00000360| 65 61 70 6f 6e 28 63 6c | 61 73 73 29 3b 0d 0a 7d |eapon(cl|ass);..}|
|00000370| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|00000380| 6e 63 74 69 6f 6e 20 44 | 72 61 77 57 65 61 70 6f |nction D|rawWeapo|
|00000390| 6e 49 6e 66 6f 28 43 61 | 6e 76 61 73 20 43 61 6e |nInfo(Ca|nvas Can|
|000003a0| 76 61 73 29 0d 0a 7b 0d | 0a 09 4e 65 77 44 72 61 |vas)..{.|..NewDra|
|000003b0| 77 57 65 61 70 6f 6e 49 | 6e 66 6f 28 43 61 6e 76 |wWeaponI|nfo(Canv|
|000003c0| 61 73 2c 20 30 29 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |as, 0);.|.}....si|
|000003d0| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|000003e0| 20 4e 65 77 44 72 61 77 | 57 65 61 70 6f 6e 49 6e | NewDraw|WeaponIn|
|000003f0| 66 6f 28 43 61 6e 76 61 | 73 20 43 61 6e 76 61 73 |fo(Canva|s Canvas|
|00000400| 2c 20 66 6c 6f 61 74 20 | 59 50 6f 73 29 0d 0a 7b |, float |YPos)..{|
|00000410| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 78 50 6c 61 |.. lo|cal xPla|
|00000420| 79 65 72 20 50 43 3b 0d | 0a 0d 0a 09 50 43 20 3d |yer PC;.|....PC =|
|00000430| 20 78 50 6c 61 79 65 72 | 28 49 6e 73 74 69 67 61 | xPlayer|(Instiga|
|00000440| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 3b |tor.Cont|roller);|
|00000450| 0d 0a 09 69 66 20 28 20 | 50 43 20 3d 3d 20 4e 6f |...if ( |PC == No|
|00000460| 6e 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |ne )....|return;.|
|00000470| 0a 0d 0a 20 20 20 20 69 | 66 28 20 50 61 73 73 54 |... i|f( PassT|
|00000480| 61 72 67 65 74 20 21 3d | 20 4e 6f 6e 65 20 29 0d |arget !=| None ).|
|00000490| 0a 20 20 20 20 20 20 20 | 20 50 43 2e 6d 79 48 55 |. | PC.myHU|
|000004a0| 44 2e 53 65 74 54 61 72 | 67 65 74 69 6e 67 28 20 |D.SetTar|geting( |
|000004b0| 74 72 75 65 2c 20 50 61 | 73 73 54 61 72 67 65 74 |true, Pa|ssTarget|
|000004c0| 2e 4c 6f 63 61 74 69 6f | 6e 2c 20 31 2e 30 20 29 |.Locatio|n, 1.0 )|
|000004d0| 3b 0d 0a 0d 0a 09 50 43 | 2e 6d 79 48 55 44 2e 44 |;.....PC|.myHUD.D|
|000004e0| 72 61 77 54 61 72 67 65 | 74 69 6e 67 28 43 61 6e |rawTarge|ting(Can|
|000004f0| 76 61 73 29 3b 0d 0a 20 | 20 20 20 50 43 2e 6d 79 |vas);.. | PC.my|
|00000500| 48 55 44 2e 53 65 74 54 | 61 72 67 65 74 69 6e 67 |HUD.SetT|argeting|
|00000510| 28 66 61 6c 73 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |(false);|..}....s|
|00000520| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000530| 6e 20 42 72 69 6e 67 55 | 70 28 6f 70 74 69 6f 6e |n BringU|p(option|
|00000540| 61 6c 20 57 65 61 70 6f | 6e 20 50 72 65 76 57 65 |al Weapo|n PrevWe|
|00000550| 61 70 6f 6e 29 0d 0a 7b | 0d 0a 20 20 20 20 53 75 |apon)..{|.. Su|
|00000560| 70 65 72 2e 42 72 69 6e | 67 55 70 28 29 3b 0d 0a |per.Brin|gUp();..|
|00000570| 0d 0a 20 20 20 20 69 66 | 20 28 49 6e 73 74 69 67 |.. if| (Instig|
|00000580| 61 74 6f 72 2e 49 73 4c | 6f 63 61 6c 6c 79 43 6f |ator.IsL|ocallyCo|
|00000590| 6e 74 72 6f 6c 6c 65 64 | 28 29 20 26 26 20 21 50 |ntrolled|() && !P|
|000005a0| 72 65 76 57 65 61 70 6f | 6e 2e 49 73 41 28 27 42 |revWeapo|n.IsA('B|
|000005b0| 61 6c 6c 4c 61 75 6e 63 | 68 65 72 27 29 29 0d 0a |allLaunc|her'))..|
|000005c0| 20 20 20 20 20 20 20 20 | 49 6e 73 74 69 67 61 74 | |Instigat|
|000005d0| 6f 72 2e 50 65 6e 64 69 | 6e 67 57 65 61 70 6f 6e |or.Pendi|ngWeapon|
|000005e0| 20 3d 20 50 72 65 76 57 | 65 61 70 6f 6e 3b 0d 0a | = PrevW|eapon;..|
|000005f0| 0d 0a 20 20 20 20 2f 2f | 20 70 72 65 76 65 6e 74 |.. //| prevent|
|00000600| 20 73 68 6f 6f 74 69 6e | 67 20 62 61 6c 6c 20 75 | shootin|g ball u|
|00000610| 6e 74 69 6c 20 62 75 74 | 74 6f 6e 20 69 73 20 72 |ntil but|ton is r|
|00000620| 65 6c 65 61 73 65 64 0d | 0a 20 20 20 20 46 69 72 |eleased.|. Fir|
|00000630| 65 4d 6f 64 65 5b 30 5d | 2e 62 49 73 46 69 72 69 |eMode[0]|.bIsFiri|
|00000640| 6e 67 20 3d 20 74 72 75 | 65 3b 0d 0a 20 20 20 20 |ng = tru|e;.. |
|00000650| 46 69 72 65 4d 6f 64 65 | 5b 30 5d 2e 62 4e 6f 77 |FireMode|[0].bNow|
|00000660| 57 61 69 74 69 6e 67 20 | 3d 20 74 72 75 65 3b 0d |Waiting |= true;.|
|00000670| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000680| 66 75 6e 63 74 69 6f 6e | 20 57 65 61 70 6f 6e 20 |function| Weapon |
|00000690| 4e 65 78 74 57 65 61 70 | 6f 6e 28 57 65 61 70 6f |NextWeap|on(Weapo|
|000006a0| 6e 20 43 75 72 72 65 6e | 74 43 68 6f 69 63 65 2c |n Curren|tChoice,|
|000006b0| 20 57 65 61 70 6f 6e 20 | 43 75 72 72 65 6e 74 57 | Weapon |CurrentW|
|000006c0| 65 61 70 6f 6e 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |eapon)..|{...if (|
|000006d0| 20 43 75 72 72 65 6e 74 | 57 65 61 70 6f 6e 20 3d | Current|Weapon =|
|000006e0| 3d 20 73 65 6c 66 20 29 | 0d 0a 09 09 72 65 74 75 |= self )|....retu|
|000006f0| 72 6e 20 49 6e 73 74 69 | 67 61 74 6f 72 2e 50 65 |rn Insti|gator.Pe|
|00000700| 6e 64 69 6e 67 57 65 61 | 70 6f 6e 3b 0d 0a 09 65 |ndingWea|pon;...e|
|00000710| 6c 73 65 0d 0a 09 09 72 | 65 74 75 72 6e 20 53 75 |lse....r|eturn Su|
|00000720| 70 65 72 2e 4e 65 78 74 | 57 65 61 70 6f 6e 28 43 |per.Next|Weapon(C|
|00000730| 75 72 72 65 6e 74 43 68 | 6f 69 63 65 2c 43 75 72 |urrentCh|oice,Cur|
|00000740| 72 65 6e 74 57 65 61 70 | 6f 6e 29 3b 0d 0a 7d 0d |rentWeap|on);..}.|
|00000750| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00000760| 63 74 69 6f 6e 20 57 65 | 61 70 6f 6e 20 50 72 65 |ction We|apon Pre|
|00000770| 76 57 65 61 70 6f 6e 28 | 57 65 61 70 6f 6e 20 43 |vWeapon(|Weapon C|
|00000780| 75 72 72 65 6e 74 43 68 | 6f 69 63 65 2c 20 57 65 |urrentCh|oice, We|
|00000790| 61 70 6f 6e 20 43 75 72 | 72 65 6e 74 57 65 61 70 |apon Cur|rentWeap|
|000007a0| 6f 6e 29 0d 0a 7b 0d 0a | 09 69 66 20 28 20 43 75 |on)..{..|.if ( Cu|
|000007b0| 72 72 65 6e 74 57 65 61 | 70 6f 6e 20 3d 3d 20 73 |rrentWea|pon == s|
|000007c0| 65 6c 66 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |elf )...|.return |
|000007d0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 50 65 6e 64 69 |Instigat|or.Pendi|
|000007e0| 6e 67 57 65 61 70 6f 6e | 3b 0d 0a 09 65 6c 73 65 |ngWeapon|;...else|
|000007f0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 53 75 70 65 72 |....retu|rn Super|
|00000800| 2e 50 72 65 76 57 65 61 | 70 6f 6e 28 43 75 72 72 |.PrevWea|pon(Curr|
|00000810| 65 6e 74 43 68 6f 69 63 | 65 2c 43 75 72 72 65 6e |entChoic|e,Curren|
|00000820| 74 57 65 61 70 6f 6e 29 | 3b 0d 0a 7d 0d 0a 0d 0a |tWeapon)|;..}....|
|00000830| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00000840| 6f 6e 20 62 6f 6f 6c 20 | 50 75 74 44 6f 77 6e 28 |on bool |PutDown(|
|00000850| 29 0d 0a 7b 0d 0a 20 20 | 20 20 69 66 20 28 20 6c |)..{.. | if ( l|
|00000860| 61 75 6e 63 68 65 64 42 | 61 6c 6c 20 7c 7c 20 49 |aunchedB|all || I|
|00000870| 6e 73 74 69 67 61 74 6f | 72 2e 50 6c 61 79 65 72 |nstigato|r.Player|
|00000880| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000890| 48 61 73 46 6c 61 67 20 | 3d 3d 20 4e 6f 6e 65 20 |HasFlag |== None |
|000008a0| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 |).. {|.. |
|000008b0| 20 20 6c 61 75 6e 63 68 | 65 64 42 61 6c 6c 20 3d | launch|edBall =|
|000008c0| 20 66 61 6c 73 65 3b 0d | 0a 20 20 20 20 20 20 20 | false;.|. |
|000008d0| 20 72 65 74 75 72 6e 20 | 53 75 70 65 72 2e 50 75 | return |Super.Pu|
|000008e0| 74 44 6f 77 6e 28 29 3b | 0d 0a 20 20 20 20 7d 0d |tDown();|.. }.|
|000008f0| 0a 09 69 66 20 28 20 49 | 6e 73 74 69 67 61 74 6f |..if ( I|nstigato|
|00000900| 72 2e 50 65 6e 64 69 6e | 67 57 65 61 70 6f 6e 20 |r.Pendin|gWeapon |
|00000910| 3d 3d 20 73 65 6c 66 20 | 29 0d 0a 09 09 49 6e 73 |== self |)....Ins|
|00000920| 74 69 67 61 74 6f 72 2e | 50 65 6e 64 69 6e 67 57 |tigator.|PendingW|
|00000930| 65 61 70 6f 6e 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 20 |eapon = |None;.. |
|00000940| 20 20 20 72 65 74 75 72 | 6e 28 20 66 61 6c 73 65 | retur|n( false|
|00000950| 20 29 3b 20 2f 2f 20 4e | 65 76 65 72 20 6c 65 74 | ); // N|ever let|
|00000960| 20 74 68 65 6d 20 70 75 | 74 20 74 68 65 20 77 65 | them pu|t the we|
|00000970| 61 70 6f 6e 20 61 77 61 | 79 2e 0d 0a 7d 0d 0a 0d |apon awa|y...}...|
|00000980| 0a 66 75 6e 63 74 69 6f | 6e 20 53 65 74 50 61 73 |.functio|n SetPas|
|00000990| 73 54 61 72 67 65 74 28 | 20 50 61 77 6e 20 70 61 |sTarget(| Pawn pa|
|000009a0| 73 73 54 61 72 67 20 29 | 0d 0a 7b 0d 0a 20 20 20 |ssTarg )|..{.. |
|000009b0| 20 69 66 20 28 20 28 50 | 61 73 73 54 61 72 67 65 | if ( (P|assTarge|
|000009c0| 74 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 50 |t != Non|e) && (P|
|000009d0| 61 73 73 54 61 72 67 65 | 74 20 21 3d 20 50 61 73 |assTarge|t != Pas|
|000009e0| 73 54 61 72 67 29 20 26 | 26 20 28 50 6c 61 79 65 |sTarg) &|& (Playe|
|000009f0| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 28 50 61 73 73 |rControl|ler(Pass|
|00000a00| 54 61 72 67 65 74 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |Target.C|ontrolle|
|00000a10| 72 29 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |r) != No|ne) )...|
|00000a20| 09 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |.PlayerC|ontrolle|
|00000a30| 72 28 50 61 73 73 54 61 | 72 67 65 74 2e 43 6f 6e |r(PassTa|rget.Con|
|00000a40| 74 72 6f 6c 6c 65 72 29 | 2e 43 6c 69 65 6e 74 50 |troller)|.ClientP|
|00000a50| 6c 61 79 53 6f 75 6e 64 | 28 50 61 73 73 54 61 72 |laySound|(PassTar|
|00000a60| 67 65 74 4c 6f 73 74 29 | 3b 09 0d 0a 20 20 20 20 |getLost)|;... |
|00000a70| 50 61 73 73 54 61 72 67 | 65 74 20 3d 20 70 61 73 |PassTarg|et = pas|
|00000a80| 73 54 61 72 67 3b 0d 0a | 20 20 20 20 69 66 20 28 |sTarg;..| if (|
|00000a90| 20 50 61 73 73 54 61 72 | 67 65 74 20 3d 3d 20 4e | PassTar|get == N|
|00000aa0| 6f 6e 65 20 29 0d 0a 09 | 09 4c 65 76 65 6c 2e 47 |one )...|.Level.G|
|00000ab0| 61 6d 65 2e 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |ame.Game|Replicat|
|00000ac0| 69 6f 6e 49 6e 66 6f 2e | 46 6c 61 67 54 61 72 67 |ionInfo.|FlagTarg|
|00000ad0| 65 74 20 3d 20 4e 6f 6e | 65 3b 0d 0a 20 20 20 20 |et = Non|e;.. |
|00000ae0| 65 6c 73 65 0d 0a 09 09 | 4c 65 76 65 6c 2e 47 61 |else....|Level.Ga|
|00000af0| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|00000b00| 6f 6e 49 6e 66 6f 2e 46 | 6c 61 67 54 61 72 67 65 |onInfo.F|lagTarge|
|00000b10| 74 20 3d 20 50 61 73 73 | 54 61 72 67 65 74 2e 50 |t = Pass|Target.P|
|00000b20| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000b30| 49 6e 66 6f 3b 0d 0a 20 | 20 20 20 69 66 20 28 20 |Info;.. | if ( |
|00000b40| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00000b50| 28 49 6e 73 74 69 67 61 | 74 6f 72 2e 43 6f 6e 74 |(Instiga|tor.Cont|
|00000b60| 72 6f 6c 6c 65 72 29 20 | 21 3d 20 4e 6f 6e 65 20 |roller) |!= None |
|00000b70| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 |).. {|.. |
|00000b80| 20 20 69 66 20 28 20 70 | 61 73 73 54 61 72 67 20 | if ( p|assTarg |
|00000b90| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 20 20 20 20 20 |!= None |).. |
|00000ba0| 20 20 20 20 20 20 20 50 | 6c 61 79 65 72 43 6f 6e | P|layerCon|
|00000bb0| 74 72 6f 6c 6c 65 72 28 | 49 6e 73 74 69 67 61 74 |troller(|Instigat|
|00000bc0| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 2e 43 |or.Contr|oller).C|
|00000bd0| 6c 69 65 6e 74 50 6c 61 | 79 53 6f 75 6e 64 28 50 |lientPla|ySound(P|
|00000be0| 61 73 73 54 61 72 67 65 | 74 4c 6f 63 6b 65 64 29 |assTarge|tLocked)|
|00000bf0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 65 6c 73 65 0d |;.. | else.|
|00000c00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 50 6c 61 |. | Pla|
|00000c10| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 49 6e |yerContr|oller(In|
|00000c20| 73 74 69 67 61 74 6f 72 | 2e 43 6f 6e 74 72 6f 6c |stigator|.Control|
|00000c30| 6c 65 72 29 2e 43 6c 69 | 65 6e 74 50 6c 61 79 53 |ler).Cli|entPlayS|
|00000c40| 6f 75 6e 64 28 50 61 73 | 73 54 61 72 67 65 74 4c |ound(Pas|sTargetL|
|00000c50| 6f 73 74 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 20 20 |ost);.. | }.. |
|00000c60| 20 20 69 66 20 28 20 28 | 50 61 73 73 54 61 72 67 | if ( (|PassTarg|
|00000c70| 65 74 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |et != No|ne) && (|
|00000c80| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00000c90| 28 50 61 73 73 54 61 72 | 67 65 74 2e 43 6f 6e 74 |(PassTar|get.Cont|
|00000ca0| 72 6f 6c 6c 65 72 29 20 | 21 3d 20 4e 6f 6e 65 29 |roller) |!= None)|
|00000cb0| 20 29 0d 0a 09 09 50 6c | 61 79 65 72 43 6f 6e 74 | )....Pl|ayerCont|
|00000cc0| 72 6f 6c 6c 65 72 28 50 | 61 73 73 54 61 72 67 65 |roller(P|assTarge|
|00000cd0| 74 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 29 2e 43 6c |t.Contro|ller).Cl|
|00000ce0| 69 65 6e 74 50 6c 61 79 | 53 6f 75 6e 64 28 50 61 |ientPlay|Sound(Pa|
|00000cf0| 73 73 54 61 72 67 65 74 | 4c 6f 63 6b 65 64 29 3b |ssTarget|Locked);|
|00000d00| 09 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |...}....|function|
|00000d10| 20 4d 6f 64 69 66 79 50 | 61 77 6e 28 20 66 6c 6f | ModifyP|awn( flo|
|00000d20| 61 74 20 64 74 20 29 0d | 0a 7b 0d 0a 20 20 20 20 |at dt ).|.{.. |
|00000d30| 69 66 20 28 20 49 6e 73 | 74 69 67 61 74 6f 72 2e |if ( Ins|tigator.|
|00000d40| 57 65 61 70 6f 6e 20 3d | 3d 20 73 65 6c 66 20 26 |Weapon =|= self &|
|00000d50| 26 20 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 |& Instig|ator.Pla|
|00000d60| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000d70| 66 6f 2e 48 61 73 46 6c | 61 67 20 21 3d 20 4e 6f |fo.HasFl|ag != No|
|00000d80| 6e 65 29 0d 0a 20 20 20 | 20 7b 0d 0a 09 20 20 20 |ne).. | {... |
|00000d90| 20 69 66 20 28 20 49 6e | 73 74 69 67 61 74 6f 72 | if ( In|stigator|
|00000da0| 2e 48 65 61 6c 74 68 20 | 3c 20 49 6e 73 74 69 67 |.Health |< Instig|
|00000db0| 61 74 6f 72 2e 48 65 61 | 6c 74 68 4d 61 78 20 29 |ator.Hea|lthMax )|
|00000dc0| 0d 0a 09 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 |... {|.. |
|00000dd0| 20 20 20 20 20 20 48 65 | 61 6c 41 63 63 75 6d 20 | He|alAccum |
|00000de0| 2b 3d 20 48 65 61 6c 52 | 61 74 65 20 2a 20 64 74 |+= HealR|ate * dt|
|00000df0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |;.. | i|
|00000e00| 66 28 20 48 65 61 6c 41 | 63 63 75 6d 20 3e 20 31 |f( HealA|ccum > 1|
|00000e10| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | ).. | |
|00000e20| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{.. | |
|00000e30| 20 20 20 49 6e 73 74 69 | 67 61 74 6f 72 2e 48 65 | Insti|gator.He|
|00000e40| 61 6c 74 68 20 3d 20 4d | 69 6e 28 49 6e 73 74 69 |alth = M|in(Insti|
|00000e50| 67 61 74 6f 72 2e 48 65 | 61 6c 74 68 4d 61 78 2c |gator.He|althMax,|
|00000e60| 20 49 6e 73 74 69 67 61 | 74 6f 72 2e 48 65 61 6c | Instiga|tor.Heal|
|00000e70| 74 68 20 2b 20 48 65 61 | 6c 41 63 63 75 6d 29 3b |th + Hea|lAccum);|
|00000e80| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000e90| 20 20 48 65 61 6c 41 63 | 63 75 6d 20 2d 3d 20 69 | HealAc|cum -= i|
|00000ea0| 6e 74 28 48 65 61 6c 41 | 63 63 75 6d 29 3b 0d 0a |nt(HealA|ccum);..|
|00000eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 0a 09 | | }...|
|00000ec0| 20 20 20 20 7d 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a | }.. | }....|
|00000ed0| 20 20 20 20 69 66 20 28 | 20 49 6e 73 74 69 67 61 | if (| Instiga|
|00000ee0| 74 6f 72 2e 57 65 61 70 | 6f 6e 20 21 3d 20 73 65 |tor.Weap|on != se|
|00000ef0| 6c 66 20 26 26 20 49 6e | 73 74 69 67 61 74 6f 72 |lf && In|stigator|
|00000f00| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000f10| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 20 21 |onInfo.H|asFlag !|
|00000f20| 3d 20 4e 6f 6e 65 29 0d | 0a 20 20 20 20 7b 0d 0a |= None).|. {..|
|00000f30| 20 20 20 20 20 20 20 20 | 78 42 6f 6d 62 46 6c 61 | |xBombFla|
|00000f40| 67 28 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 |g(Instig|ator.Pla|
|00000f50| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000f60| 66 6f 2e 48 61 73 46 6c | 61 67 29 2e 53 65 74 48 |fo.HasFl|ag).SetH|
|00000f70| 6f 6c 64 65 72 28 20 49 | 6e 73 74 69 67 61 74 6f |older( I|nstigato|
|00000f80| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 20 29 3b 0d |r.Contro|ller );.|
|00000f90| 0a 20 20 20 20 7d 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |. }..|}....sim|
|00000fa0| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|00000fb0| 54 69 63 6b 28 66 6c 6f | 61 74 20 64 74 29 0d 0a |Tick(flo|at dt)..|
|00000fc0| 7b 0d 0a 20 20 20 20 69 | 66 20 28 20 28 4c 65 76 |{.. i|f ( (Lev|
|00000fd0| 65 6c 2e 4e 65 74 4d 6f | 64 65 20 3d 3d 20 4e 4d |el.NetMo|de == NM|
|00000fe0| 5f 43 6c 69 65 6e 74 29 | 20 7c 7c 20 49 6e 73 74 |_Client)| || Inst|
|00000ff0| 69 67 61 74 6f 72 20 3d | 3d 20 4e 6f 6e 65 20 7c |igator =|= None ||
|00001000| 7c 20 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 || Instig|ator.Pla|
|00001010| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001020| 66 6f 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |fo == No|ne).. |
|00001030| 20 20 20 20 20 72 65 74 | 75 72 6e 3b 0d 0a 0d 0a | ret|urn;....|
|00001040| 09 69 66 20 28 20 49 6e | 73 74 69 67 61 74 6f 72 |.if ( In|stigator|
|00001050| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001060| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 20 3d |onInfo.H|asFlag =|
|00001070| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 7b 0d 0a 09 09 |= None )|...{....|
|00001080| 69 66 20 28 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |if ( Lev|el.TimeS|
|00001090| 65 63 6f 6e 64 73 20 2d | 20 53 77 69 74 63 68 54 |econds -| SwitchT|
|000010a0| 65 73 74 54 69 6d 65 20 | 3e 20 30 2e 38 20 29 0d |estTime |> 0.8 ).|
|000010b0| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 28 49 |...{....|.if ( (I|
|000010c0| 6e 73 74 69 67 61 74 6f | 72 2e 57 65 61 70 6f 6e |nstigato|r.Weapon|
|000010d0| 20 3d 3d 20 73 65 6c 66 | 29 20 26 26 20 28 28 49 | == self|) && ((I|
|000010e0| 6e 73 74 69 67 61 74 6f | 72 2e 50 65 6e 64 69 6e |nstigato|r.Pendin|
|000010f0| 67 57 65 61 70 6f 6e 20 | 3d 3d 20 4e 6f 6e 65 29 |gWeapon |== None)|
|00001100| 20 7c 7c 20 28 49 6e 73 | 74 69 67 61 74 6f 72 2e | || (Ins|tigator.|
|00001110| 50 65 6e 64 69 6e 67 57 | 65 61 70 6f 6e 20 3d 3d |PendingW|eapon ==|
|00001120| 20 73 65 6c 66 29 29 20 | 29 0d 0a 09 09 09 09 49 | self)) |)......I|
|00001130| 6e 73 74 69 67 61 74 6f | 72 2e 43 6f 6e 74 72 6f |nstigato|r.Contro|
|00001140| 6c 6c 65 72 2e 43 6c 69 | 65 6e 74 53 77 69 74 63 |ller.Cli|entSwitc|
|00001150| 68 54 6f 42 65 73 74 57 | 65 61 70 6f 6e 28 29 3b |hToBestW|eapon();|
|00001160| 0d 0a 09 09 09 53 77 69 | 74 63 68 54 65 73 74 54 |.....Swi|tchTestT|
|00001170| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|00001180| 53 65 63 6f 6e 64 73 3b | 0d 0a 09 09 7d 0d 0a 0d |Seconds;|....}...|
|00001190| 0a 09 09 69 66 20 28 20 | 49 6e 73 74 69 67 61 74 |...if ( |Instigat|
|000011a0| 6f 72 2e 41 6d 62 69 65 | 6e 74 53 6f 75 6e 64 20 |or.Ambie|ntSound |
|000011b0| 3d 3d 20 50 61 73 73 41 | 6d 62 69 65 6e 74 20 29 |== PassA|mbient )|
|000011c0| 0d 0a 09 09 09 41 6d 62 | 69 65 6e 74 53 6f 75 6e |.....Amb|ientSoun|
|000011d0| 64 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 72 65 74 |d = None|;....ret|
|000011e0| 75 72 6e 3b 0d 0a 20 20 | 20 20 7d 0d 0a 0d 0a 20 |urn;.. | }.... |
|000011f0| 20 20 20 2f 2f 20 73 61 | 66 65 67 75 61 72 64 20 | // sa|feguard |
|00001200| 2d 20 74 6f 20 62 65 20 | 61 62 73 6f 75 6c 75 74 |- to be |absoulut|
|00001210| 6c 79 20 63 65 72 74 61 | 69 6e 20 74 68 65 20 62 |ly certa|in the b|
|00001220| 61 6c 6c 20 6c 61 75 6e | 63 68 65 72 20 69 73 20 |all laun|cher is |
|00001230| 75 70 20 77 68 65 6e 20 | 70 6c 61 79 65 72 20 68 |up when |player h|
|00001240| 61 73 20 74 68 65 20 62 | 61 6c 6c 20 61 6e 64 20 |as the b|all and |
|00001250| 6e 6f 74 20 75 70 20 6f | 74 68 65 72 77 69 73 65 |not up o|therwise|
|00001260| 0d 0a 20 20 20 20 69 66 | 20 28 4c 65 76 65 6c 2e |.. if| (Level.|
|00001270| 54 69 6d 65 53 65 63 6f | 6e 64 73 20 2d 20 53 77 |TimeSeco|nds - Sw|
|00001280| 69 74 63 68 54 65 73 74 | 54 69 6d 65 20 3e 20 30 |itchTest|Time > 0|
|00001290| 2e 35 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |.5).. | {.. |
|000012a0| 20 20 20 20 69 66 20 28 | 20 28 49 6e 73 74 69 67 | if (| (Instig|
|000012b0| 61 74 6f 72 2e 57 65 61 | 70 6f 6e 20 21 3d 20 73 |ator.Wea|pon != s|
|000012c0| 65 6c 66 29 20 26 26 20 | 28 49 6e 73 74 69 67 61 |elf) && |(Instiga|
|000012d0| 74 6f 72 2e 50 65 6e 64 | 69 6e 67 57 65 61 70 6f |tor.Pend|ingWeapo|
|000012e0| 6e 20 21 3d 20 73 65 6c | 66 29 20 29 0d 0a 20 20 |n != sel|f) ).. |
|000012f0| 20 20 20 20 20 20 7b 0d | 0a 09 09 09 69 66 20 28 | {.|....if (|
|00001300| 20 50 61 73 73 54 61 72 | 67 65 74 20 21 3d 20 4e | PassTar|get != N|
|00001310| 6f 6e 65 20 29 0d 0a 09 | 09 09 09 53 65 74 50 61 |one )...|...SetPa|
|00001320| 73 73 54 61 72 67 65 74 | 28 4e 6f 6e 65 29 3b 0d |ssTarget|(None);.|
|00001330| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 49 6e 73 |. | Ins|
|00001340| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00001350| 65 72 2e 43 6c 69 65 6e | 74 53 65 74 57 65 61 70 |er.Clien|tSetWeap|
|00001360| 6f 6e 28 63 6c 61 73 73 | 27 42 61 6c 6c 4c 61 75 |on(class|'BallLau|
|00001370| 6e 63 68 65 72 27 29 3b | 0d 0a 20 20 20 20 20 20 |ncher');|.. |
|00001380| 20 20 7d 0d 0a 20 20 20 | 20 20 20 20 20 65 6c 73 | }.. | els|
|00001390| 65 20 69 66 20 28 20 28 | 50 61 73 73 54 61 72 67 |e if ( (|PassTarg|
|000013a0| 65 74 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |et != No|ne) && (|
|000013b0| 28 50 61 73 73 74 61 72 | 67 65 74 2e 43 6f 6e 74 |(Passtar|get.Cont|
|000013c0| 72 6f 6c 6c 65 72 20 3d | 3d 20 4e 6f 6e 65 29 20 |roller =|= None) |
|000013d0| 7c 7c 20 28 56 53 69 7a | 65 28 50 61 73 73 54 61 ||| (VSiz|e(PassTa|
|000013e0| 72 67 65 74 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |rget.Loc|ation - |
|000013f0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 4c 6f 63 61 74 |Instigat|or.Locat|
|00001400| 69 6f 6e 29 20 3e 20 36 | 30 30 30 29 29 20 29 0d |ion) > 6|000)) ).|
|00001410| 0a 09 09 09 53 65 74 50 | 61 73 73 54 61 72 67 65 |....SetP|assTarge|
|00001420| 74 28 4e 6f 6e 65 29 3b | 0d 0a 20 20 20 20 20 20 |t(None);|.. |
|00001430| 20 20 53 77 69 74 63 68 | 54 65 73 74 54 69 6d 65 | Switch|TestTime|
|00001440| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|00001450| 6f 6e 64 73 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |onds;.. | }....|
|00001460| 09 4d 6f 64 69 66 79 50 | 61 77 6e 28 64 74 29 3b |.ModifyP|awn(dt);|
|00001470| 0d 0a 20 7d 0d 0a 0d 0a | 2f 2f 20 74 6f 64 6f 3a |.. }....|// todo:|
|00001480| 20 64 69 73 61 6c 6c 6f | 77 20 73 77 69 74 63 68 | disallo|w switch|
|00001490| 69 6e 67 20 61 77 61 79 | 20 66 72 6f 6d 20 74 68 |ing away| from th|
|000014a0| 69 73 20 77 68 69 6c 65 | 20 74 68 69 73 20 77 65 |is while| this we|
|000014b0| 61 70 6f 6e 20 69 73 20 | 63 6f 6d 69 6e 67 20 69 |apon is |coming i|
|000014c0| 73 20 75 70 21 21 0d 0a | 73 69 6d 75 6c 61 74 65 |s up!!..|simulate|
|000014d0| 64 20 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |d functi|on bool |
|000014e0| 53 74 61 72 74 46 69 72 | 65 28 20 69 6e 74 20 6d |StartFir|e( int m|
|000014f0| 6f 64 65 4e 75 6d 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |odeNum )|..{...lo|
|00001500| 63 61 6c 20 62 6f 6f 6c | 20 62 52 65 73 75 6c 74 |cal bool| bResult|
|00001510| 3b 0d 0a 0d 0a 09 62 52 | 65 73 75 6c 74 20 3d 20 |;.....bR|esult = |
|00001520| 53 75 70 65 72 2e 53 74 | 61 72 74 46 69 72 65 28 |Super.St|artFire(|
|00001530| 6d 6f 64 65 4e 75 6d 29 | 3b 0d 0a 0d 0a 09 69 66 |modeNum)|;.....if|
|00001540| 20 28 20 62 52 65 73 75 | 6c 74 20 29 0d 0a 09 7b | ( bResu|lt )...{|
|00001550| 0d 0a 09 09 69 66 20 28 | 20 6d 6f 64 65 4e 75 6d |....if (| modeNum|
|00001560| 20 3d 3d 20 30 20 29 0d | 0a 09 09 7b 0d 0a 09 09 | == 0 ).|...{....|
|00001570| 09 6c 61 75 6e 63 68 65 | 64 42 61 6c 6c 20 3d 20 |.launche|dBall = |
|00001580| 74 72 75 65 3b 0d 0a 09 | 09 09 43 6c 69 65 6e 74 |true;...|..Client|
|00001590| 50 6c 61 79 46 6f 72 63 | 65 46 65 65 64 62 61 63 |PlayForc|eFeedbac|
|000015a0| 6b 28 50 61 73 73 54 61 | 72 67 65 74 4c 6f 63 6b |k(PassTa|rgetLock|
|000015b0| 65 64 46 6f 72 63 65 29 | 3b 0d 0a 09 09 7d 0d 0a |edForce)|;....}..|
|000015c0| 09 09 65 6c 73 65 0d 0a | 09 09 09 43 6c 69 65 6e |..else..|...Clien|
|000015d0| 74 50 6c 61 79 46 6f 72 | 63 65 46 65 65 64 62 61 |tPlayFor|ceFeedba|
|000015e0| 63 6b 28 50 61 73 73 54 | 61 72 67 65 74 4c 6f 73 |ck(PassT|argetLos|
|000015f0| 74 46 6f 72 63 65 29 3b | 0d 0a 09 7d 0d 0a 09 72 |tForce);|...}...r|
|00001600| 65 74 75 72 6e 20 62 52 | 65 73 75 6c 74 3b 0d 0a |eturn bR|esult;..|
|00001610| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00001620| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 48 61 73 |unction |bool Has|
|00001630| 41 6d 6d 6f 28 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |Ammo()..|{...if (|
|00001640| 20 78 42 6f 6d 62 46 6c | 61 67 28 49 6e 73 74 69 | xBombFl|ag(Insti|
|00001650| 67 61 74 6f 72 2e 50 6c | 61 79 65 72 52 65 70 6c |gator.Pl|ayerRepl|
|00001660| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 48 61 73 46 |icationI|nfo.HasF|
|00001670| 6c 61 67 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |lag) != |None )..|
|00001680| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00001690| 20 20 20 20 72 65 74 75 | 72 6e 28 20 66 61 6c 73 | retu|rn( fals|
|000016a0| 65 20 29 3b 20 2f 2f 20 | 4e 65 76 65 72 20 6c 65 |e ); // |Never le|
|000016b0| 74 20 74 68 65 6d 20 63 | 68 61 6e 67 65 20 74 6f |t them c|hange to|
|000016c0| 20 74 68 69 73 20 77 65 | 61 70 6f 6e 20 66 6f 72 | this we|apon for|
|000016d0| 20 66 75 6e 2e 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 | fun...}|....simu|
|000016e0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 57 |lated fu|nction W|
|000016f0| 65 61 70 6f 6e 20 52 65 | 63 6f 6d 6d 65 6e 64 57 |eapon Re|commendW|
|00001700| 65 61 70 6f 6e 28 20 6f | 75 74 20 66 6c 6f 61 74 |eapon( o|ut float|
|00001710| 20 72 61 74 69 6e 67 20 | 29 0d 0a 7b 0d 0a 20 20 | rating |)..{.. |
|00001720| 20 20 6c 6f 63 61 6c 20 | 57 65 61 70 6f 6e 20 52 | local |Weapon R|
|00001730| 65 63 6f 6d 6d 65 6e 64 | 65 64 3b 0d 0a 20 20 20 |ecommend|ed;.. |
|00001740| 20 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 6f 6c 64 | local f|loat old|
|00001750| 52 61 74 69 6e 67 3b 0d | 0a 0d 0a 09 69 66 20 28 |Rating;.|....if (|
|00001760| 20 78 42 6f 6d 62 46 6c | 61 67 28 49 6e 73 74 69 | xBombFl|ag(Insti|
|00001770| 67 61 74 6f 72 2e 50 6c | 61 79 65 72 52 65 70 6c |gator.Pl|ayerRepl|
|00001780| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 48 61 73 46 |icationI|nfo.HasF|
|00001790| 6c 61 67 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |lag) != |None )..|
|000017a0| 09 7b 0d 0a 09 09 72 61 | 74 69 6e 67 20 3d 20 31 |.{....ra|ting = 1|
|000017b0| 30 30 30 30 30 30 30 3b | 0d 0a 09 09 72 65 74 75 |0000000;|....retu|
|000017c0| 72 6e 20 73 65 6c 66 3b | 0d 0a 09 7d 0d 0a 0d 0a |rn self;|...}....|
|000017d0| 20 20 20 20 69 66 20 28 | 20 69 6e 76 65 6e 74 6f | if (| invento|
|000017e0| 72 79 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |ry != No|ne ).. |
|000017f0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 52 65 63 | {.. | Rec|
|00001800| 6f 6d 6d 65 6e 64 65 64 | 20 3d 20 69 6e 76 65 6e |ommended| = inven|
|00001810| 74 6f 72 79 2e 52 65 63 | 6f 6d 6d 65 6e 64 57 65 |tory.Rec|ommendWe|
|00001820| 61 70 6f 6e 28 6f 6c 64 | 52 61 74 69 6e 67 29 3b |apon(old|Rating);|
|00001830| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 20 52 |.. | if ( R|
|00001840| 65 63 6f 6d 6d 65 6e 64 | 65 64 20 21 3d 20 4e 6f |ecommend|ed != No|
|00001850| 6e 65 20 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |ne ).. | {.|
|00001860| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 72 61 74 |. | rat|
|00001870| 69 6e 67 20 3d 20 6f 6c | 64 52 61 74 69 6e 67 3b |ing = ol|dRating;|
|00001880| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |.. | re|
|00001890| 74 75 72 6e 20 52 65 63 | 6f 6d 6d 65 6e 64 65 64 |turn Rec|ommended|
|000018a0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|000018b0| 20 20 7d 0d 0a 20 20 20 | 20 2f 2f 20 4e 65 76 65 | }.. | // Neve|
|000018c0| 72 20 72 65 74 75 72 6e | 20 74 68 65 20 62 61 6c |r return| the bal|
|000018d0| 6c 20 6c 61 75 6e 63 68 | 65 72 20 69 66 20 6e 6f |l launch|er if no|
|000018e0| 20 62 6f 6d 62 21 0d 0a | 20 20 20 20 72 65 74 75 | bomb!..| retu|
|000018f0| 72 6e 20 4e 6f 6e 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |rn None;|..}....f|
|00001900| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 43 61 6e |unction |bool Can|
|00001910| 41 74 74 61 63 6b 28 41 | 63 74 6f 72 20 4f 74 68 |Attack(A|ctor Oth|
|00001920| 65 72 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |er)..{..|.return |
|00001930| 74 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |true;..}|....func|
|00001940| 74 69 6f 6e 20 53 65 74 | 41 49 54 61 72 67 65 74 |tion Set|AITarget|
|00001950| 28 41 63 74 6f 72 20 54 | 29 0d 0a 7b 0d 0a 09 41 |(Actor T|)..{...A|
|00001960| 49 54 61 72 67 65 74 20 | 3d 20 54 3b 0d 0a 7d 0d |ITarget |= T;..}.|
|00001970| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00001980| 20 42 6f 74 46 69 72 65 | 28 62 6f 6f 6c 20 62 46 | BotFire|(bool bF|
|00001990| 69 6e 69 73 68 65 64 2c | 20 6f 70 74 69 6f 6e 61 |inished,| optiona|
|000019a0| 6c 20 6e 61 6d 65 20 46 | 69 72 69 6e 67 4d 6f 64 |l name F|iringMod|
|000019b0| 65 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 78 42 |e)..{...|local xB|
|000019c0| 6f 6d 62 46 6c 61 67 20 | 42 6f 6d 62 3b 0d 0a 09 |ombFlag |Bomb;...|
|000019d0| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 53 68 6f |local ve|ctor Sho|
|000019e0| 6f 74 4c 6f 63 3b 0d 0a | 09 6c 6f 63 61 6c 20 42 |otLoc;..|.local B|
|000019f0| 6f 74 20 42 3b 0d 0a 0d | 0a 20 20 20 20 42 6f 6d |ot B;...|. Bom|
|00001a00| 62 20 3d 20 78 42 6f 6d | 62 46 6c 61 67 28 20 49 |b = xBom|bFlag( I|
|00001a10| 6e 73 74 69 67 61 74 6f | 72 2e 50 6c 61 79 65 72 |nstigato|r.Player|
|00001a20| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001a30| 48 61 73 46 6c 61 67 20 | 29 3b 0d 0a 09 42 20 3d |HasFlag |);...B =|
|00001a40| 20 42 6f 74 28 49 6e 73 | 74 69 67 61 74 6f 72 2e | Bot(Ins|tigator.|
|00001a50| 43 6f 6e 74 72 6f 6c 6c | 65 72 29 3b 0d 0a 09 69 |Controll|er);...i|
|00001a60| 66 20 28 20 21 42 2e 62 | 50 6c 61 6e 6e 65 64 53 |f ( !B.b|PlannedS|
|00001a70| 68 6f 74 20 7c 7c 20 28 | 42 6f 6d 62 20 3d 3d 20 |hot || (|Bomb == |
|00001a80| 4e 6f 6e 65 29 20 7c 7c | 20 28 41 49 54 61 72 67 |None) ||| (AITarg|
|00001a90| 65 74 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |et == No|ne) )...|
|00001aa0| 7b 0d 0a 09 09 42 2e 62 | 50 6c 61 6e 6e 65 64 53 |{....B.b|PlannedS|
|00001ab0| 68 6f 74 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |hot = fa|lse;....|
|00001ac0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00001ad0| 7d 0d 0a 0d 0a 09 2f 2f | 20 66 69 6e 64 20 63 6f |}.....//| find co|
|00001ae0| 72 72 65 63 74 20 69 6e | 69 74 69 61 6c 20 76 65 |rrect in|itial ve|
|00001af0| 6c 6f 63 69 74 79 0d 0a | 09 53 68 6f 6f 74 4c 6f |locity..|.ShootLo|
|00001b00| 63 20 3d 20 41 49 54 61 | 72 67 65 74 2e 4c 6f 63 |c = AITa|rget.Loc|
|00001b10| 61 74 69 6f 6e 3b 0d 0a | 20 20 20 20 42 6f 6d 62 |ation;..| Bomb|
|00001b20| 2e 50 61 73 73 54 61 72 | 67 65 74 20 3d 20 4e 6f |.PassTar|get = No|
|00001b30| 6e 65 3b 0d 0a 09 69 66 | 20 28 20 50 61 77 6e 28 |ne;...if| ( Pawn(|
|00001b40| 41 49 54 61 72 67 65 74 | 29 20 21 3d 20 4e 6f 6e |AITarget|) != Non|
|00001b50| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 53 68 6f 6f 74 |e )...{.|...Shoot|
|00001b60| 4c 6f 63 20 3d 20 53 68 | 6f 6f 74 4c 6f 63 20 2b |Loc = Sh|ootLoc +|
|00001b70| 20 30 2e 35 20 2a 20 28 | 56 53 69 7a 65 28 53 68 | 0.5 * (|VSize(Sh|
|00001b80| 6f 6f 74 4c 6f 63 20 2d | 20 42 6f 6d 62 2e 4c 6f |ootLoc -| Bomb.Lo|
|00001b90| 63 61 74 69 6f 6e 29 2f | 42 6f 6d 62 2e 54 68 72 |cation)/|Bomb.Thr|
|00001ba0| 6f 77 53 70 65 65 64 29 | 20 2a 20 50 61 77 6e 28 |owSpeed)| * Pawn(|
|00001bb0| 41 49 54 61 72 67 65 74 | 29 2e 56 65 6c 6f 63 69 |AITarget|).Veloci|
|00001bc0| 74 79 3b 0d 0a 09 09 42 | 6f 6d 62 2e 50 61 73 73 |ty;....B|omb.Pass|
|00001bd0| 54 61 72 67 65 74 20 3d | 20 50 61 77 6e 28 41 49 |Target =| Pawn(AI|
|00001be0| 54 61 72 67 65 74 29 3b | 0d 0a 09 7d 0d 0a 09 65 |Target);|...}...e|
|00001bf0| 6c 73 65 20 69 66 20 28 | 20 28 47 61 6d 65 4f 62 |lse if (| (GameOb|
|00001c00| 6a 65 63 74 69 76 65 28 | 41 49 54 61 72 67 65 74 |jective(|AITarget|
|00001c10| 29 20 3d 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 41 |) == Non|e) && (A|
|00001c20| 49 54 61 72 67 65 74 2e | 4c 6f 63 61 74 69 6f 6e |ITarget.|Location|
|00001c30| 2e 5a 20 3c 3d 20 42 6f | 6d 62 2e 4c 6f 63 61 74 |.Z <= Bo|mb.Locat|
|00001c40| 69 6f 6e 2e 5a 29 20 29 | 0d 0a 09 09 53 68 6f 6f |ion.Z) )|....Shoo|
|00001c50| 74 4c 6f 63 20 3d 20 53 | 68 6f 6f 74 4c 6f 63 20 |tLoc = S|hootLoc |
|00001c60| 2d 20 41 49 54 61 72 67 | 65 74 2e 43 6f 6c 6c 69 |- AITarg|et.Colli|
|00001c70| 73 69 6f 6e 48 65 69 67 | 68 74 20 2a 20 76 65 63 |sionHeig|ht * vec|
|00001c80| 74 28 30 2c 30 2c 31 29 | 3b 0d 0a 0d 0a 09 72 65 |t(0,0,1)|;.....re|
|00001c90| 74 75 72 6e 20 53 68 6f | 6f 74 48 6f 6f 70 28 42 |turn Sho|otHoop(B|
|00001ca0| 2c 53 68 6f 6f 74 4c 6f | 63 29 3b 0d 0a 7d 0d 0a |,ShootLo|c);..}..|
|00001cb0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00001cc0| 53 68 6f 6f 74 48 6f 6f | 70 28 43 6f 6e 74 72 6f |ShootHoo|p(Contro|
|00001cd0| 6c 6c 65 72 20 42 2c 20 | 56 65 63 74 6f 72 20 53 |ller B, |Vector S|
|00001ce0| 68 6f 6f 74 4c 6f 63 29 | 0d 0a 7b 0d 0a 09 6c 6f |hootLoc)|..{...lo|
|00001cf0| 63 61 6c 20 78 42 6f 6d | 62 46 6c 61 67 20 42 6f |cal xBom|bFlag Bo|
|00001d00| 6d 62 3b 0d 0a 0d 0a 20 | 20 20 20 42 6f 6d 62 20 |mb;.... | Bomb |
|00001d10| 3d 20 78 42 6f 6d 62 46 | 6c 61 67 28 20 49 6e 73 |= xBombF|lag( Ins|
|00001d20| 74 69 67 61 74 6f 72 2e | 50 6c 61 79 65 72 52 65 |tigator.|PlayerRe|
|00001d30| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00001d40| 73 46 6c 61 67 20 29 3b | 0d 0a 0d 0a 09 2f 2f 20 |sFlag );|.....// |
|00001d50| 73 68 6f 6f 74 20 68 6f | 6f 70 0d 0a 20 20 20 20 |shoot ho|op.. |
|00001d60| 46 69 72 65 4d 6f 64 65 | 5b 30 5d 2e 50 6c 61 79 |FireMode|[0].Play|
|00001d70| 46 69 72 69 6e 67 28 29 | 3b 0d 0a 20 20 20 20 46 |Firing()|;.. F|
|00001d80| 69 72 65 4d 6f 64 65 5b | 30 5d 2e 46 6c 61 73 68 |ireMode[|0].Flash|
|00001d90| 4d 75 7a 7a 6c 65 46 6c | 61 73 68 28 29 3b 0d 0a |MuzzleFl|ash();..|
|00001da0| 20 20 20 20 46 69 72 65 | 4d 6f 64 65 5b 30 5d 2e | Fire|Mode[0].|
|00001db0| 53 74 61 72 74 4d 75 7a | 7a 6c 65 53 6d 6f 6b 65 |StartMuz|zleSmoke|
|00001dc0| 28 29 3b 0d 0a 20 20 20 | 20 49 6e 63 72 65 6d 65 |();.. | Increme|
|00001dd0| 6e 74 46 6c 61 73 68 43 | 6f 75 6e 74 28 30 29 3b |ntFlashC|ount(0);|
|00001de0| 0d 0a 20 20 20 20 6c 61 | 75 6e 63 68 65 64 42 61 |.. la|unchedBa|
|00001df0| 6c 6c 20 3d 20 74 72 75 | 65 3b 0d 0a 0d 0a 20 20 |ll = tru|e;.... |
|00001e00| 20 20 42 6f 6d 62 2e 54 | 68 72 6f 77 28 49 6e 73 | Bomb.T|hrow(Ins|
|00001e10| 74 69 67 61 74 6f 72 2e | 4c 6f 63 61 74 69 6f 6e |tigator.|Location|
|00001e20| 2c 20 42 2e 41 64 6a 75 | 73 74 54 6f 73 73 28 42 |, B.Adju|stToss(B|
|00001e30| 6f 6d 62 2e 54 68 72 6f | 77 53 70 65 65 64 2c 20 |omb.Thro|wSpeed, |
|00001e40| 42 6f 6d 62 2e 4c 6f 63 | 61 74 69 6f 6e 2c 20 53 |Bomb.Loc|ation, S|
|00001e50| 68 6f 6f 74 4c 6f 63 2c | 74 72 75 65 29 20 29 3b |hootLoc,|true) );|
|00001e60| 20 2f 2f 66 69 78 6d 65 | 20 65 78 70 65 72 69 6d | //fixme| experim|
|00001e70| 65 6e 74 20 77 69 74 68 | 20 62 4e 6f 72 6d 61 6c |ent with| bNormal|
|00001e80| 69 7a 65 3d 3d 66 61 6c | 73 65 0d 0a 09 69 66 20 |ize==fal|se...if |
|00001e90| 28 20 42 6f 74 28 42 29 | 20 21 3d 20 4e 6f 6e 65 |( Bot(B)| != None|
|00001ea0| 20 29 0d 0a 09 09 42 6f | 74 28 42 29 2e 62 50 6c | )....Bo|t(B).bPl|
|00001eb0| 61 6e 6e 65 64 53 68 6f | 74 20 3d 20 66 61 6c 73 |annedSho|t = fals|
|00001ec0| 65 3b 0d 0a 09 41 49 54 | 61 72 67 65 74 20 3d 20 |e;...AIT|arget = |
|00001ed0| 4e 6f 6e 65 3b 0d 0a 09 | 72 65 74 75 72 6e 20 74 |None;...|return t|
|00001ee0| 72 75 65 3b 0d 0a 7d 0d | 0a 0d 0a 00 |rue;..}.|.... |
+--------+-------------------------+-------------------------+--------+--------+